package com.battle.service.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.battle.pojo.entity.TreeNode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/

@Repository
public interface TreeNodeMapper extends BaseMapper< TreeNode > {

    /**
     * 获取后代id
     * @param progenitor 祖先id
     * @return
     */
    List<Long> getDescendantIds(@Param("progenitor") Long progenitor);
}